//
//  ViewController.m
//  ScrollViewInMasonryBeta
//
//  Created by king on 15/11/30.
//  Copyright © 2015年 king. All rights reserved.
//

#import "ViewController.h"
#import "ScrollViewMasonry.h"
#import "Masonry.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.title = @"ScrollView利用Masonry适配Beta1";
    self.view.backgroundColor = [UIColor yellowColor];
    
    ScrollViewMasonry *scrollView = [[ScrollViewMasonry alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    
    [self.view addSubview:scrollView];
    [scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.edges.equalTo(self.view).with.insets
        (UIEdgeInsetsMake(0,0,0,0));
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
